package phonecompany;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;


/**
 * @since Oct 30, 2011
 * @author <a href="mailto:zexpp5@gmail.com">Zexu.Lin</a>
 * @version $Id: PhoneManagerClient.java 27 2011-10-30 18:35:47Z zexpp5@gmail.com $
 * 
 */
public class PhoneManagerClient {
	public static void main(String[] args) {
		System.setSecurityManager(new RMISecurityManager());
		try {
			PhoneManagerService server = (PhoneManagerService) Naming.lookup("rmi://localhost/PhoneManagerService");
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NotBoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
